package com.corx.network.mysqlstorage.repository;

import com.corx.network.mysqlstorage.common.PageQuery;
import com.corx.network.mysqlstorage.common.PageResult;
import com.corx.network.mysqlstorage.model.NetworkReceivedMessageListenerJar;

import java.util.List;
import java.util.Optional;

/**
 * @author gx
 * @version 1.0.0
 */
public interface NetworkReceivedMessageListenerJarRepository {

    Optional<NetworkReceivedMessageListenerJar> findById(Long id);

    List<NetworkReceivedMessageListenerJar> findByNetworkId(Long networkId);

    PageResult<NetworkReceivedMessageListenerJar> findByPage(NetworkReceivedMessageListenerJar model, PageQuery pageQuery);

    void save(NetworkReceivedMessageListenerJar model);

    void update(NetworkReceivedMessageListenerJar model);

    void delete(Long id);
}
